package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Points;
import com.example.rbacmanage.service.app.PointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/points")
public class PointsAppController {
    @Autowired
    private PointsService pointsService;

    @GetMapping("/page")
    public Result page(Points points){
        return Result.success(pointsService.getPage(points));
    }
}
